package org.zn.etl.job.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.zn.etl.job.entity.po.EtlJobPo;

public interface EtlJobMapper {
    int deleteByPrimaryKey(Long id);

    int insert(EtlJobPo row);

    EtlJobPo selectByPrimaryKey(Long id);

    List<EtlJobPo> selectAll();

    int updateByPrimaryKey(EtlJobPo row);
    
    /**
     * 按名称查询
     * @param jobName
     * @return
     */
    EtlJobPo  selectByName(@Param("jobName") String jobName);
    
    /**
     * 名称查询 id
     * @param jobName
     * @return
     */
    List<Long> selectNameListForId(@Param("list") List<String> jobName);
    
    
    /**
     * @param groupId
     * 查询组任务
     * @return
     */
    List<EtlJobPo>  selectGroupAvailableJobs(Long groupId);
}